package com.shkco.exception;

import lombok.Getter;

@Getter
public enum GlobalExceptionCode {

    OK("成功","0"),
    ERROR("失败","-1"),
    PARAM_IS_NULL("参数不能为空","-2"),

    INVENTORY_INSUFFICIENT("库存不足！请及时补货！","-3"),
    BANLANCE_INSUFFICIENT("余额不足！无法购买","-4")

    ;

    private String msg;
    private String code;

    GlobalExceptionCode(String msg, String code) {
        this.msg = msg;
        this.code = code;
    }
}
